﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="News.ascx.cs" Inherits="News" %>
<%@ Register Namespace="ASPnetControls" Assembly="ASPnetPagerV2_8" TagPrefix="cc" %>
<link href="css/DarkStyle.css" type="text/css" rel="stylesheet" />
<div class="detailBox">
    <div class="Title">
        <h1 class="Title">TIN TỨC - BÀI VIẾT</h1>
    </div>
    <asp:Repeater runat="server" ID="rptNews">
        <ItemTemplate>
            <div class="HopTin">
                <div class="AnhDaiDien">
                    <a href='<%# FormatLink(DataBinder.Eval(Container.DataItem,"NewsId").ToString()) %>' style='<%# FormatVisibleImage(DataBinder.Eval(Container.DataItem,"ImagePath").ToString())%>'>
                        <img class="NewsImage" id="Img1" runat="server" src='<%# FormatImage(DataBinder.Eval(Container.DataItem,"ImagePath").ToString())%>'
                            width="130" align="left" style="margin-right: 5px; border: 1px solid gray;" />
                    </a>
                </div>
                <div align="justify">
                    <a class="SPTen" href='<%# FormatLink(DataBinder.Eval(Container.DataItem,"NewsId").ToString()) %>'>
                        <%# DataBinder.Eval(Container.DataItem,"Title")%>
                    </a>
                    <p class="NewsTitle">
                        <%# DataBinder.Eval(Container.DataItem,"Summary")%>
                    </p>
                </div>
                <div class="DocTiep">
                    <a class="DocTiep" href='<%# FormatLink(DataBinder.Eval(Container.DataItem,"NewsId").ToString()) %>'>
                        Xem tiếp</a></div>
            </div>
        </ItemTemplate>
    </asp:Repeater>
    <center>
        <cc:PagerV2_8 ID="pager1" runat="server" OnCommand="pager_Command" GenerateGoToSection="False" PageSize="5" />
    </center>
</div>
